package org.familysearch.fsapi.gwt.common.client.entities;


public class Identifier {
	
	public static class IdentifierTypeConstant
	{
		
		private String type;
		
		private IdentifierTypeConstant(String type)
		{
			this.type = type;
		}
		
		public String toString()
		{
			String str = "[identifier-type=" +
				this.type;
			str += "]";
			return str;
		}
	}
	
	private String id;
	private IdentifierTypeConstant type;
	
	public static final IdentifierTypeConstant AFN = new IdentifierTypeConstant("AFN");
	public static final IdentifierTypeConstant GEDCOM = new IdentifierTypeConstant("GEDCOM");
	public static final IdentifierTypeConstant FSAPI = new IdentifierTypeConstant("FSAPI");
	public static final IdentifierTypeConstant OTHER = new IdentifierTypeConstant("OTHER");

	public Identifier()
	{

	}
	
	public Identifier(IdentifierTypeConstant type)
	{
		this.type = type;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public IdentifierTypeConstant getType() {
		return type;
	}

	public void setType(IdentifierTypeConstant type) {
		this.type = type;
	}
	
	public String toString()
	{
		String str = "[identifier" +
			"[id=" +this.getId()+ "]" +
			"[type=" +this.getType()+ "]";
		str += "]";
		return str;
	}
	
}
